import moment from 'moment';
import * as step from '@flow-step/step-toolkit'
export function getDateVersion(){
    const now = moment();
    const formattedDate = now.format("YYYYMMDDHHmmss");
    return formattedDate;
}

export function printJSON(formattedResult: any): void {
    step.info(`{`);
    for (const key in formattedResult) {
        if (formattedResult.hasOwnProperty(key)) {
            const value = formattedResult[key];
            step.info(`    "${key}": "${value}",`);
        }
    }
    step.info(`}`);
}